package com.app.mapper;


import com.app.model.JobPublishModel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;


@Mapper
@Component
public interface JobPublishMapper extends BaseMapper<JobPublishModel> {

    /**
     * 根据id查询工作
     */

    public List<JobPublishModel> findAllJobById (int id);
    public int insertJobs(JobPublishModel jobPublish);

    void update(JobPublishModel jobPublish);
    List<JobPublishModel> getJobPublishListByModel(JobPublishModel jobPublish);

    int getJobPublishCountByModel(JobPublishModel jobPublish);

    List<JobPublishModel> getJobPublishListByExOpen(int rid);

    int getModelCount(int recId);

    List<JobPublishModel> JobFindAllLikes(String title);//模糊查询

    int getModelCountByTime(String crtTime);
    int countAll();

    int getModelCountByEid(int enrollId);

    List<JobPublishModel> getModelGroupType();

    List<JobPublishModel> selectPost();

    List<JobPublishModel> supplyAndDemandIndustries();
    int selectJobCount();
    Integer queryPositionCount(@Param("city") String city);
    List<JobPublishModel> getPostSalaryAve();
}
